Young people prescribed opioids by dentists or oral surgeons are at a high risk of addiction the following year, a study says.