A man is to plead guilty to killing Chloe Mitchell by reason of diminished responsibility, a court has heard.