Quarantine and testing strategies in contact tracing for SARS-CoV-2: a modelling study