Deal means Gap will still have a UK High Street presence within Next’s stores despite closing its own.