Irish deputy PM Frances Fitzgerald agrees to resign