French government resigns in post-election formality