Liverpool moved into second place in the Premier League with a hard-fought 3-0 win over Southampton at St Mary's.