Matthew Perry details how opioid overuse almost led him to death in 2018