what is the main function of the blood in circulatory system