The storm caused flash flooding in areas of New York, central Virginia and New Jersey that gushed through subway stations, stranded vehicles and prompted a state of emergency.