Uruguay's World Cup dreams over despite beating Ghana