A simple blood test could be used in the future to predict the health and productivity of dairy cows, research shows.