Gulf leaders signed a ‘solidarity and stability’ agreement towards ending the diplomatic rift at a GCC summit in Saudi Arabia.