Flash flood warnings were issued for all five boroughs as heavy rainfall hit the area. Gov. Phil Murphy of New Jersey declared a state of emergency.