Fermin Lopez scored twice and provided two assists as Barcelona thrashed Valencia to end their four-game winless La Liga run.