A darkening picture for consumers and unusually high prices for tech shares suggest the market’s seemingly endless upswing may be coming to an end.