Matthew Perry had similar amounts of ketamine in his system as a patient under general anesthetic when he died, his autopsy has detailed.