Habits and durability in consumption, and the dynamics of the current account