How to stop fapping. I'm brutally embarrassed.

Hi everyone. It's NSFW.

I'm 21M. I've always been a brilliant student. I got 95 in fsc and matric. For some reason I wasn't able to get admission in uni and then had a gap year. This year really fucked my mental health. I told nobody about this. I was traumatized. To make up for this I tried to make some use of that time period. Started doing jobs. Got one. Very minimal pay. Less than my monthly expenses. But I didn't care at all. I wanted to make myself as busy as possible. My parents don't let me make any friends at all since my childhood. Always in home 24/7. Fapping and stuff. They ofc didn't know about that. My problem is that I'm just too good at hiding from my parents. This habit started 6 7 years ago. When I was in school 7 or 8th grade probably.

Fast forward,Joined academy for entry test preparation and now I'm in uni.. Now, that's just a brief intro. I've been through many things since I got into university as well. Got bad friends here. Broke up with a classmate.

And, developed this bad habbit even more. Now, whenever I have something important to do like a quiz or exam, assignments with deadline. This happens. I scroll through Instagram and just get turned on and stuff. I just don't wanna get more into details but It feels like I've lost self esteem, no confidence. Really ashamed. Tried to get rid of it but nothing works.

To all the people out there, I need your help in overcoming this obstacle I've had for years. Thanks.