Masturbation is a normal physiological act. Almost all male does it or had done in the past. Accept it; as a natural desire and remove guilt about it. There is nothing wrong in the act but still if you want to stop doing it then self control is the only way. Getting married and indulging into regular sexual act thereafter can also stop it.