A superb late free-kick from Alain Traore secured Burkina Faso a 1-0 victory over Ghana in the Africa Cup of Nations third-place play-off at Stade de Port-Gentil.