Prevalence and risk factors of mastitis in dairy cows