Ivory Coast got off to a winning start in the Africa Cup of Nations, beating a battling Togo team in Group D.