The P/E ratio is one of the most popular stock market ratios, but it has some serious flaws that investors should know about.