China has decided to put its largest city of Shanghai, which has a population of over 26 million, under lockdown due to record Covid-19 cases.