Legal marijuana linked to reduction in opioid prescriptions