Constraints on Cosmic Strings from the LIGO-Virgo Gravitational-Wave Detectors