You really should work directly with your doctor. Any type of self treatment is not wise. Are you still trying to stop masturbating? Are you sure you aren't overreacting? do you receive psychological help or counseling? How is masturbating impacting you to be this drastic of a situation?