Replacing quarantine of COVID-19 contacts with periodic testing is also effective in mitigating the risk of transmission