A measure of the nation’s debt to other countries surged by almost 12% in the first quarter to the highest level in 14 years largely because of record U.S. trade deficits during the pandemic.