The prime minister's visit was a "show of solidarity" with the Ukrainian people, Downing Street says.