Laurence des Carrs submitted her resignation to President Emmanel Macron, who said it was "an act of responsibility".