Two adults in their 40s and a teenager have died following a single-vehicle collision on the M5 motorway in south Gloucestershire.