M4 reopens hours after lorry carrying hay catches fire