I'm not quite sure why you think religions should provide the solution. Both the opiate and the illegal drugs problems are due to commercial activity that has not been wisely regulated. In the case of opiates it has been failure to control the marketing methods of pharmaceutical companies, in a profit-oriented health system. In the case of illegal drugs, it is the futile strategy of making them illegal, thereby driving up the price, making suppply of poor quality drugs highly profitable for criminal gangs.
Alcohol is a different story, as that is sensibly regulated. In most societies there is a level of addiction and harm from alcohol which, though undesirable, seems fairly stable. But then there are other addictions too, e.g. gambling and, in the USA especially, junk food and fizzy drinks, leading to appalling obesity, or addiction to various on-line activities, resulting in psychological harm. I don't think you will ever get rid of addictions. All these things stem from a lack of self-control, I suppose, which is one of things that many religions encourage. But as we know, religions also offer models for imperfect people to aspire to, as well as the virtuous. And by no means everyone follows a religion.
I suspect better health education in schools would help, along with more intelligent government policies, ideally free from the usual cant and pandering to the ignorant (some hope, eh?).