New York City pounded by rare flash floods