Ramaphosa is reelected for second term as South African president, heading broad coalition