Modeling the Evolution of Infectious Diseases with Functional Data Models: The Case of COVID-19 in Brazil