A mathematical model of the COVID-19 pandemic dynamics with dependent variable infection rate: Application to the Republic of Korea