Liverpool back on top with win at Cardiff