Genetics of resistance to mastitis in dairy cattle