That's just the problem isn't it? People are prescribed a drug for medicinal purposes that is so addictive and so readily distributed for minor ailments that medicinal use inevitably turns to recreational use after the prescription runs out.
Louis Theroux's "Dark States: Heroin Town" is a good account of how these addictions progress in the US, and some of the reasons for the growing numbers we are seeing.