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