Gélis Yvon, Psychiatre à Montpellier