Why is my male cat constantly having erections?

Dear Most Esteemed and Knowledgeable Kitties:
I really hope you can help. Basically, we’ve just got a male cat (2 years old) from a shelter and he is really affectionate and loves human contact. He constantly purrs when he’s with us.
But the problem is, when he sits on my lap or lies on the bed with [...]