The Social Rate of Discount and the Optimal Rate of Investment