Constant James, Psychiatre à Divonne-les-bains