Drivers have been stuck in four-mile queues on the M5 for hours after a lorry inferno sent black smoke billowing across the motorway.