UK government says it will back legislation to ban foreign state ownership of British newspapers