Investment Under Uncertainty and Time-Inconsistent Preferences