French President Emmanuel Macron has reportedly rejected Prime Minister Gabriel Attal's resignation after the ruling party failed to secure a majority in snap legislative elections.