Teach him that touching his penis is okay to to do only in his bedroom or the bathroom & that when you see him touch it in "public, " you'll say , "look at me. Quiet hands." then say, "good listening!" when he moves his hands away. Do not shame him or tell him that masturbation
is "bad, " because it's normal.