Artificial intelligence (AI) is prompting investors to rethink risk and asset allocation. Portfolios that look diversified on paper can still depend heavily on a narrow group of companies driving the current AI cycle.