Floods send New York City into state of emergency