What is the purpose of cortisol in the human body?