Why are you looking for a 2000 year old story for answers? Back then shit sucked, there was no medical science or an understanding of how anything worked beyond a knowledge of the stars and the earth. Christ compelled people to be less sucky via magic: turning water into whine, walking on water, feeding the poor by turning 1 fish into thousands and 1 loaf of bread into thousands. He would also cure the sick, heal the blind, bring the dead back to life, etc. He didn't tell you if you could masturbate or not.
No there is no references to Masturbation in the new testament. Fool. Masturbation = necessary to save your sorry prostate from explosion if you don't get regular wet dreams which just doesn't happen all the time.
(I am not a preacher don't take what I say to heart.)