South Sudan foes sign final power-sharing deal