Midfielder Adam Lallana scored twice as Liverpool finally rediscovered their goalscoring form as they beat Swansea 4-1 at Anfield.