Voting machines in a New York town have been hit by a virus casting doubt on the accuracy of counts retrieved from any of the machines.