The Ukrainian president meets troops in a city badly damaged after months of fierce fighting.