Combining with cortisol and transmitting the signal within the cell to trigger a change in cell activity or function.