Plans to test people for coronavirus at supermarket chains have been cancelled, due to fears that customers could attack store owners.