The BEST thing you can do is stay close to God and LOVE HIM. Through Christ all things are possible. When I am right with God, I view everything differently and overcome temptation much easier than I do when I'm distant from him and not praying continually. So always PRAY. Another thing I recommend is visit www gotquestions org and run a search on masturbation, lust, guilt, forgiveness, love and any other things you have questions about. It's a great site, it uses scripture to back up points, and offers good insight. At the bottom of every explanation, there is a recommended resource (book) related to the question that you can order if you feel the need to do so. The one for MB is called Every Young Man's Battle. It's a good book, explains a lot, let's you know you're not alone in the struggle, and offers advice on self-control and explains the purpose of sex. While it's not THE solution, there's a great chance it will help.
As far as marriage eliminating the urge, I don't believe that is a true solution. I have read and been told that MB is still a temptation and a struggle when people are married. That could be a result of not averting one's eyes when he sees an attractive woman, leading to MB, it could result from fantasy, or maybe there is a relationship problem in the family that may be causing some stress. People MB for all kinds of reasons. For me it's usually because I'm trying to find love in the wrong places. Love is in Jesus. Sexual purity is a tough battle but it has been conquered before. I struggle with it, but God has taught me a lot along the way about the consequences of it and why it's not healthy for Christians. I don't do it nearly as much as I used to. The bible says if we look at a woman lustfully we've already committed adultery in heart. It would be better if we could look at everyone, including attractive women, as real people, in search of Love and acceptance that they'll only find in Jesus Christ. It would be best to reach out to an attractive girl with spiritual love rather than lust after her. If God calls you to, talk to them and try and get on the topic of Jesus and share how he saved you! Many girls might find this refreshing and meaningful because they are used to being hit on, but instead someone actually shows the love of Jesus towards her and she may just want to get saved! You may have something inside of you she needs to hear! God calls us all to witness. I've found for me that reminding myself of my purpose here, and everyone's purpose, it helps me to spread the gospel-- a very productive way of escaping temptation. And I don't just do it to girls, I tend to share my testimony with guys too because i can relate more, obviously.
p.s. I didn't and don't always do this. I didn't always have the ability to do it, even the courage. Over time, God has showed me how to be more sociable and real with people. He's equipping me with the skills I need to handle the conversations and situations. He can do the same for anyone if it's His plan for you... ask Him! He'll answer you and over time you will learn what God wants you to learn. Remain strong brother! I hope this helps.
p.s. #2 - If you or anyone wants help with communication and overcoming social anxiety with people: family, friends, strangers.. I recommend a book call Conversationally Speaking. Conversational skills can help us spread the Word of God. I don't remember the author's name but look it up on amazon or somewhere. It has helped me SOOO much and God has already used it to help me reach out to people all over with the new skills I've learned. Easy and interesting read.