Habits and the Anomalies in Intertemporal Choice