Shanghai to phase out strict lockdown measures that have kept 26 million people at home for more than six weeks.