Various African heads of state gathered in Pretoria for the swearing-in of Cyril Ramaphosa as South Africa's president for a second term.