Shanghai a magnet for investment