South Sudan government and rebel forces sign deal to settle security