Tories took 'swift action' after MI5 warning about would-be MPs