Flash flooding submerged vehicles in parts of Queens and Brooklyn after torrential rain swept across New York City.