Adaptation to climate change in coastal towns of between 10,000 and 50,000 inhabitants