South Sudan rebels agree to talks as fighting rages