Investment under Uncertainty and Time-Inconsistent Preferences