Zinedine Zidane's Real Madrid beat Barcelona 3-1 at the Camp Nou to move to the top of the LaLiga table.