I guess that you have problem of compulsive masturbation. It is one of the Obsessive spectrum disorders. It is mental illness related to Serotonin (chemical in brain) imbalance and other psychological factors. Please consult psychiatrist, you will get rid of your problem.