Optimal Lockdown Policy for Covid-19: A Modelling Study