Thanks for using Healthcaremagic,
I have gone through the details provided by you.Masturbation
is quite normal in young age and has no relation with development of cancer.
You are studying medicine so most likely it is some kind of infection which causes frequency and urinary symptoms.
It is necessary to find exactly what it is so just consult a Urosurgeon and get tests like Complete blood count
,Urine analysis, semen analysis
to see pus cells.
We can also get Ultrasonography
to see size and tissue, if dynamics of bladder is required than Uroflowmetry can be performed .
If there is any infection UTI,Prostatitis
, it can be certainly treated.
Please do not worry about cancer.
Hope this information helps you.
Dr.Akhilesh Dubey M.D.