Inferring groundwater system dynamics from hydrological time-series data