Lionel Messi came within "a centimetre" of signing on loan for Barcelona's local rivals Espanyol, according to Tottenham manager Mauricio Pochettino.