Retrospective study of the first wave of COVID-19 in Spain: analysis of counterfactual scenarios