I have a rash on my penis shaft and head under my foreskin

it rarely itches, but flares up the most after masturbation. just wondering if anyone could help me out .