Hello,
Thanks for posting on HCM,
Your problem does not require only medicines but a long term
psychotherapy as you will require lots and lots of counseling and support from an expert.
Your problem might as well not only be limited to
masturbation but you may be suffering from other psychosocial disorders such as
depression and masturbation might have been the only way of compensating for your poor social interaction and general well being. It is a good step that you already recognize this problem and very much willing to gain back your health. So I will recommend that you do not try to do this alone at home, but try seeing a
psychiatrist who can guide you through this.
Chronic masturbation and addiction, can really pose a lot of social problems and loss of self esteem but that can be over come with a lot of will power from your side.
You will need to guided step by step on how to first of all get rid of the masturbation addiction, then also receive treatment for your depression. Taking antidepressants such as tricyclic antidepressants can generally help.
Hope this helps and wish you the best