Flooding affected roads and neighbourhoods in Shanghai on Friday as the city faced its second typhoon in a week, with rainfall breaking local records in certain areas.