As the globe warms, communities across the world are providing examples of how to adapt. David Biello reports