Climate change is making extreme rainfall more common, while more homes are still being built on floodplains.