André Ayew scored a penalty as Ghana beat Uganda 1-0 before Mali and Egypt played out a dour 0-0 draw in the other game in Africa Cup of Nations Group D