Hello
I really appreciate your concern.
Looking at your description it seems to be related to infection or inflammation of foreskin of the penis.
At the outset you need to rule out the possibility of
STD (sexually transmitted diseases).
If you can write back to me with a photograph so that I will be able to tell you better.
In my opinion you should go for a battry of tests like CBC,
VDRL test, urine culture and serological test for
herpes.
Meanwhile wash it with antiseptic soap or solution and apply antibacterial ointment like
mupirocin or
soframycin.
Maintain good hygiene, clean your foreskin regularly.
Hope this answers your question, please feel free to ask for follow up question, I will gladly answer you.
Best wishes