As overtourism transforms neighbourhoods from Mexico City to Copenhagen, more residents are keeping their best beaches, bars, markets and hiking trails off visitors' itineraries.