Italy and Spain have formally agreed to end reciprocal border checks introduced following a spat over migration, Italy’s interior ministry said on Thursday.