Doctor accused of supplying Matthew Perry with ketamine agrees to plead guilty, court docs say