A woman driving erratically early in the morning has been identified as the cause of traffic on the M4.