A South African politician has become the first female leader of the African Union (AU), ending months of bitter deadlock