Motorists are warned to drive only “if necessary” after thunderstorms left roads submerged.