NBC: French president accepts prime minister's resignation but keeps him as head of caretaker government