Modelling and sustainable management of rainwater harvesting in urban systems