Barcelona thrash Leganes 5-1 in La Liga