Apple is preparing to open its eighth store in Shanghai this month amid slipping iPhone sales in the world’s largest smartphone market.