A new exhibition at the Museum of the City of New York chronicles the history of the city's most famous beach