Swiss parents whose child was taken away for refusing puberty blockers have lost their court case.