Keeping track of a habit in a journal or an app can help you set deliberate goals and curb routines that no longer serve you.