Guerin Cosima, Psychologue à Rochefort