Beijing denies telling firms to spy abroad