Adaptive real-time forecast of river flow-rates from rainfall data