The U.S. economy shrank in the first quarter, according to data from the federal Commerce Department.