Methods of controlling mastitis in cows