Genetic and environmental causes of variation in mastitis in sheep