Motorists faced treacherous driving conditions and dozens of schools have been closed as sub-zero temperatures and snow hit the UK.