Yellow warnings for snow and ice were in place for almost all of the UK, with roads and schools closed in Scotland and Wales.