New York City mayor declares state of emergency due to mass flooding