The M4 has been partially closed in Wiltshire during “emergency repairs.”