The U.S. economy contracted at a 1.4% annual rate in the first quarter, as the trade deficit soared to a record high and inflation began to weigh on consumer demand.