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