Hello dear,
First of all, do not get influenced by any drugs claiming to eliminate sex drive.
Masturbation is a normal phenomena at your age, and does not have any side effect on body or mind, unless you get addicted to it.
Since you are feeling that masturbation is interfering with your normal functioning, you can try out the following measures:
1. Improve your social life by spending more time with friends and relatives.
2. Keep your mind active and busy at all times either through curricular or extra-curricular activities.
3. Have a diet rich in fruits, vegetables, fish, nuts & honey.
4. Avoid fast foods & lipid containing diet.
5. Avoid
smoking & alcohol.
6. Keep away
stress, think positive.
7. Exercise regularly & practice meditation
These measures will be helpful in improving concentration & builds up the confidence level.
Take care.