More than 8,000 NHS computers have been hit by computer viruses over the last year.