Hi.
Thanks for your query.
Noted the history and understood your concerns.
Frequent
masturbation may not be related to the loose motions with whitish discharge, which most probably is basically a mucus.
I would advise you the following in such a situation:
Get the stool tests done.
If there is an infection or so, get a course of an antibiotic active against intestinal infection and
Metronidazole.
Take probiotics and activated
charcoal.
Soft bland diet, banana, curds, boiled cooled water and homemade food only.
Check for water source.
If these measures do not help, you will need further investigations of
colonoscopy, CT scan of abdomen, blood tests for thyroid and others.
If all the tests are normal, this may be due to IBS that is
irritable bowel syndrome.
Get treated accordingly; if there is any positive finding then get the specific treatment and you will be fine.