Modelling, prediction and design of national COVID-19 lockdowns by stringency and duration