Barcelona were in jubilant mood after winning their first trophy under Xavi, following a 3-1 win over Real.