Hugonnot Claude, Psychiatre à Besançon