A 48-hour weather warning for parts of the UK has been put in place.