Ukraine has driven back Russian troops in three Ukrainian territories, in humiliating setbacks for the Russian leader.