South Africa backs Egypt 'transition,' and ready to mediate Nile dam crisis