Business investment surged, probably reflecting an investment boom in artificial intelligence. But consumer spending, which accounts for around 70% of U.S. economic activity, fell sharply.