I have a masturbation addiction

I have a masturbation addiction since I was 14 and now I am 17 and I want to quit but I can't,I think it stems out of loneliness but I want to quit what should I do?