Frankrikes president Emmanuel Macron har avvisat premiärminister Gabriel Attals avskedsansökan.