The British prime minister has reiterated the UK's support for Ukraine on a visit to the country.