Diogo Jota had a goal and an assist as Liverpool defeated Cardiff City 3-1 to advance to the fifth round of the FA Cup.