I'm a doctor and what you're describing sounds like "balantitis", which is probably caused by phimosis (tight foreskin). If your foreskin is too tight, you may need to have it looked at by a doctor. You may need corrective surgery to loosen the skin or a circumcision.
Regarding your hygiene, you should wash the head of your penis several times a day. One trick: buy pre-moistened wipes (like the kind used for babies, "butt wipes") and every time you urinate, pull your foreskin back and thoroughly wipe the head of your penis and the corona (ring around the head). Make sure no lint or smegma builds up around the head, and keep the urine off it.
Another trick, when you're in your bedroom, alone, walk around nude and let your genitals "air out". Keeping them trapped in underwear and pants all day keeps the moisture and bacteria trapped inside the foreskin. If you are nude more, if possible, you'll avoid bacterial buildup. Also, when you're nude, or in private, retract your foreskin more often.
Proper hygiene is keeping it clean more than once per day.