Stocks have been soaring for years, fuelled by hopes that artificial intelligence will supercharge profits—hopes that most ...