Optimal control of COVID-19 infection rate with social costs