South Africa's ruling ANC party is to appoint a caretaker leader, after President Thabo Mbeki resigned on Sunday.