One of the most comprehensive studies of flood risk has determined that more than 17 million people along the Atlantic and Gulf coasts are at the highest risk.