A driver accused of killing a mother and daughter in a crash on the M4 has pleaded guilty to two counts of causing death by careless driving.