New research sheds light on how to use insurance money to protect countries from the spiralling cost of storms, drought, and rising sea levels