All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
There is no doubt that this behaviour is a kind of sexual perversion and it contradicts the Fitrah (the natural predisposition upon which Allaah created mankind). So, this matter is forbidden as it is a means that leads to committing homosexuality. Therefore, you are obliged to hasten to repent from it. The conditions of repentance are as follows: to stop committing the sin, regretting the sin that one has committed, and being determined not to commit it again in the future.
Your statement that you cannot control yourself is not a sound excuse, as this matter is a kind of affliction and you must strive against your own self in order to be guided to goodness and avoid evil ways. Allaah Says (what means): {And those who strive for Us - We will surely guide them to Our ways. And indeed, Allaah is with the doers of good.} [Quran 29:69]
Hence, you should be truthful with Allaah and be determined to abandon this sin, because if you are truthful towards Allaah (i.e. truthful in your repentance), then Allaah is truthful towards you (i.e. He will accept your repentance and grant you what you wish). Allaah Says (what means): {…if they had been true to Allaah, it would have been better for them.} [Quran 47:21]
This is in addition to the most important matter, which is supplication, as our Lord listens and responds to our supplication; Allaah Says (what means): {And when My servants ask you, [O Muhammad], concerning Me-indeed I am near. I respond to the invocation of the supplicant when he calls upon Me. So let them respond to Me [by obedience] and believe in Me that they may be [rightly] guided.} [Quran 2:186]
Finally, you should take the initiative to marry to keep yourself chaste, as the Prophet, sallallaahu ‘alayhi wa sallam, advised the youth to do so.
For more benefit on some means for treating homosexuality, please refer to Fataawa 81381 to 90562.
Allaah Knows best.