French PM Attal resigns but will remain in caretaker role amid political deadlock