Mechanical characterization of yarns made from carbon nanotubes for the instrumentation of particle beams at CERN