Late Ayew strike sends Ghana through