The world’s second largest economy has seen weak domestic demand amid a trade war with the US.