Definition of a Weighting Function for Rainfall in Aggregated Rainfall--Runoff Models