I can certainly help you to control masturbating, although I would need to know more about the habit. A detailed history and information about associated risk factors is needed to decide about the management. It may require use of medications in initial stages also instructions to control the craving, cut down pornography use, etc is needed.
Next Steps
I would suggest you to consult with a sexologist in detail. You may also consult with me directly here on practo.