As people move away from flooding and heat, new research suggests that those who remain will be older, poorer and more vulnerable.