Catchment residence and travel time distributions: The master equation