Wet dreams or sexual excitement with some of the urethral secretions/semen caught between the foreskin and glans could account for this. After sexual intercourse wash your penis with the foreskin pulled back and see if this helps. Ultimately you should have this checked out at your urologist if you keep experiencing this.
S.A.Liroff, M.D.