Dependence on opiods, such as heroin, causes the greatest health burden of all the illicit drugs, a global analysis has found.