Diageo Great Britain has agreed to sell its former Guinness Brewery in London.