Two adults and a teenager have died following a single-vehicle collision on the M5 in south Gloucestershire, police have said.