Freezing temperatures have been forecast for parts of the UK.