Habitual Masturbation

How do you overcome habitually masturbating? I'm a Catholic teen that's trying to overcome it. Already confessed it a couple months ago, but reverted back to my old habits a week later. I've prayed and worn a prayer bracelet ( a bracelet with an image of a pair of hands praying) and stopped doing it for a little while, but sometimes it's so hard to resist temptation.