The comedian Volodymyr Zelenskiy won a landslide victory in Ukraine’s presidential election, according to official results with nearly all of the votes counted, making a comic actor with no experience in government or the military the commander in chief of a country that has been at war with Russian proxies for over five years.