A Theory of Price-Earnings Ratios