A Rational Explanation for Irrational Investing