Causes of variation in the sex ratio in dairy cattle