New York City allows swimming at beaches ahead of Independence Day weekend