How climate change affects freshwater supplies