Thanks for your query.Based on the facts that you have posted it appears that you have what is called as Ballano Posthatitis 9Infection of Glans
This could be due to fungal or Bacterial infection.
Please consult qualified Urologist
for clinical examination .to confirm the diagnosis.
Take anti fungal medications orally along with topical anti fungal gel for local application.
Get prescription of these drugs from your family physician.
Ensure to clean your genitals while taking bath .