History has shown that valuation metrics like price-to-earnings ratio aren’t all that useful when it comes to timing stock-market tops.