Shanghai cautiously easing some restrictions