Agreement calls for ‘national unity government’ in which rebel leader Riek Machar will wield executive powers