The weather shut hundreds of schools in Wales and the West Midlands with hundreds more elsewhere closing early.