The Duchess of Edinburgh has become the first member of the royal family to visit Ukraine since the start of the Russian invasion.