Andre Ayew converted a first-half penalty as Ghana start their latest bid to reclaim the Africa Cup of Nations title with a hard-earned 1-0 victory against Uganda.