The AI boom has pushed technology stocks to new highs, but it has also masked headwinds in other sectors of the economy.