The rise of artificial intelligence has distorted stock market valuations, pulling them far from underlying fundamentals.