I can understand the distress you are through. Compulsive masturbation is difficult to control on self. Like any other addiction problem masturbation can be an addictive and hence must be treated. Irritability, guilt, weakness, poor concentration, etc are common associated symptoms seen. Most importantly, if not attended timely, it can lead to Erection problems in future. With suitable medications and instructions it can be completely treated.
Next Steps
For more specific instructions and management advice you can consult me directly here on practo. Detail information about your problem is needed.
Health Tips
Don't worry. It is treatable.