Drugstore group CVS agrees $5bn opioid settlement