Africa’s only female head of state has submitted her resignation in the country’s “national interest”.