Traffic built up on the M4 in Bridgend