Gulf leaders sign agreement towards ending the three-year diplomatic rift with Qatar at the GCC summit in Saudi Arabia.