A virus that affects sheep and cows has been detected in the UK after a "rapid increase" across Europe.