State of emergency declared over flash flooding in New York City