States with medical marijuana record fewer opioid-related deaths, study finds