UN warns South Sudan on 'edge of collapse' as tensions rise