Study: Opioid epidemic has cost Massachusetts economy $9.7B