S&P 500 CAPE ratio tops 40, matching dot-com peak