Prince William and Kate visited the city’s waterfront on a windy day with Boston Mayor Michelle Wu to learn about how the city is dealing with rising sea levels.