Although there is no specific remedy to it, I urge you to increase your piety and taqwa.
You should also consider the potential medical and social harm of it.
Good friendship, attending religious programs, keeping yourself busy in work and sports etc are temporary solutions to it. Marriage when possible, is the only long term solution to it.
You would also like to visit:
Kindly refer to the following link for detailed guidelines: http://askanalim.org/node/2451
Ask An Alim Team.