You may have accumulation of smegma over penile head below to its foreskin. Or it may have balanitis. Smegma is accumulated due to improper masturbation techniques or less masturbation. You need to maintain local hygiene for penile region by wash with water and proper soap regularly to prevent such things in future.
Next Steps
In case of balanitis, Consult dermatologist.
Health Tips
Happy to help any time online. Take care.!