Gareth Bale's brilliant individual effort five minutes from time gave Real Madrid a 2-1 win over Barcelona in the Copa del Rey final.