Judge permits caesarean section for pregnant woman with mental health problems