Mali enjoyed a second successive third-place play-off win over Ghana as they triumphed 3-1 at the Africa Cup of Nations in Port Elizabeth.