Thanks for query,
The problem you are having has nothing to do with masturbation
it seems that you might have hyper active urinary bladder
or some local irritation due to collection of smegma
due to poor local hygiene.
Gonadil f is not a drug so its efficacy is not proved and it works as a placebo.
Solifen is antispasmodic and given for over active bladder.If you feel better then you may continue.
Keep local hygiene clean and healthy.
Go for urine check up to rule out infection.
Remove fear of any problem ocurring due to masturbation.
Ok and bye.