Hi Anand, Welcome to Healthcare Magic Forum.
You may be having Balanitis
, which is the inflammation of the foreskin and head of the penis. It is more common in uncircumcised men with poor hygiene. Get yourself examined by a Urologist
to rule out the infection. In the meantime you can use Neosporin
Ointment in the area of swelling. Give it some rest and Masturbate only when you are sexually aroused.
Good Luck and Take Care.