Russia’s president has made high-profile visits to North Korea and Vietnam in a bid to show he still has allies beyond Beijing.