An MP who narrowly avoided an attack during his constituency surgery said that he is installing panic buttons to avoid a situation like the one that left MP Jo Cox seriously injured.