Colombia’s first leftist president was sworn into office Sunday, promising to fight inequality and heralding a turning point in the history of a country haunted by a long war between the government and guerrilla groups.