Constraints on Cosmic Strings Using Data from the Third Advanced LIGO-Virgo Observing Run