Thames Water warns of threat from inflation and climate change