Coastal megacities are increasingly vulnerable to flooding. How can we deal with this? From New York to Bangkok via Tokyo, an ambitious investigation.