Mazerat Philippe, Psychiatre à Perpignan