The distribution of sediment residence times at the foot of mountains and its implications for proxies recorded in sedimentary basins