Agreement to hand back UK’s last African colony follows 13 rounds of negotiations and international pressure