The Role of Habit Formation on Determinacy in a New Keynesian Model with Capital