Anguish for Ghana despite late winner