A forensic psychologist has testified at the murder trial of Lindsay Clancy that he diagnosed her with bipolar disorder after she killed her three children.