Passengers have been stranded in subways and cars submerged on roads after floods hit part of the US.