Inferring change points in the spread of COVID-19 reveals the effectiveness of interventions