Instill in them a sense of self-confidence. This can be done in many ways (martial arts, sports, acting, etc), but the important part is to send the message I don't have to conform to others to have fun and feel good about myself.
Additionally, I'm of the opinion that the best way to deter kids from certain activities (particularly sex and drinking/drugs) is to be open about them as topics, and in some cases, let them try it in a controlled environment. Demystify it, let them learn about it, and it makes it less tempting, because there's no mystery to it anymore. Be neutral about it, include both the good things (orgasms feel good) and the bad things (drinking too much can lead to blackouts, which can be more embarrassing than not drinking, and it can lead to alcohol poisoning, which can be fatal). Even if you're uncomfortable about the topic, either try not to show it, or acknowledge that you were brought up differently and now feel that it's not something to be ashamed of to talk about (depending on both your and your kids' personality, and their age). You don't want to convey your discomfort to them when talking about it.
This may be different for other people, but in my experience, peer pressure really wasn't all that pressuring in reality. I've had friends that drank, smoked (weed and tobacco), and were promiscuous. I'd get offered something, and a simple "no thanks, I'm not interested," was enough. Occasionally, someone would ask why I didn't smoke or drink and my answer was simply that I had no desire to do so, and they accepted that answer. Given that, I'd say that the majority of "peer pressure" is the perception of what other people might think. Kind of like being afraid of speaking in front of a group because you're afraid that you'll mess up and they'll laugh at you, even though you have your speech memorized so well that you could say it backwards, and the group you're speaking to is Toastmasters.
That's not to say there won't be some people who will still try to get your kids to do something unwise (or simply something you don't approve of), even after your kids say no. That's where the self confidence comes in. Not only will they be able to say "no thanks," but they will also be more likely to see these people for what they likely are - bullies and/or cowards - and decide that their approval isn't worth making a stupid decision.