remedy for nightfall

I am 21.Due to masturbating since long years and sudden quiting of it has lead to problem of nightfall. Due to which i am lossing my hairs and feel weak. Pls help me oit with this problem.