i wouldn't make reference to it either.
but perhaps it wouldn't be such a bad thing if the person who writes your reference does. then it is not you, whining, but an accepted scholar who points out that you were struggling with personal issues during exam stage and thus explains why he/she recommends you although you had low grades.
i guess the "correct" thing to have done would have been to claim mitigating circumstances while you were doing your exams. bit late for that now, though.
adem, "caring" for a person who is mentally ill is very stressful. but it is important work that gets done in our society for free and without recompensation even in form of acknowledgement by relatives and partners. imagine the additional costs to the health care system all persons with mental health issues had to immediately be treated by professionals...