Agulhas ring formation as a barotropic instability of the retroflection