Struggling with bad habits isn’t necessarily a willpower failure – it’s often about emotions, behaviour and environment.