Stochastic modelling of the hydrologic operation of rainwater harvesting systems