Traffic built up on the M4 in Bridgend, but has now eased