Torrential rainfall had led to flash flooding in parts of New York City.