Hi, Welcome to Healthcare Magic Forum,
You may suffering from Balanitis
which is an inflammation of the foreskin and head of the penis. The treatment depends upon the cause, if there is a infection, you may need antibiotics and steroid
cream application. Get yourself evaluated further by a Urologist
would be the best option. Maintaining Good hygiene can prevent this. During bathing, the foreskin should be retracted to clean and dry the area beneath it. Take care.