Well here is the important question you need to ask yourself. Are you masturbating because you need to, or because you are bored? This works for people who are overweight too. You eat because you feel the need, or because you are bored?

People do things like eat and masturbate a lot when they are bored and have nothing else to do. You can probably distract yourself from it, you just need to find something else that is fun to do.