Asset Prices Under Habit Formation and Reference-Dependent Preferences