Hello Mr James, There are two aspects to your question. One of them is masturbation
and the other is how you feel about it. Masturbation, as you know, is a normal phenomenon. But when one starts to think about it most of the time and when normal routine is disturbed because of masturbation, then it becomes a problem.
The solution is to ensure that you do not make masturbation a habit. One should masturbate only when sexually excited. Keeping yourself busy helps as "idle mind is devil's workshop".
Your negative feelings about masturbation are possibly due to influence of your friends and other unreliable sources. It is advisable to stay away from misleading information.