David Beckham ends a five-and-half year spell at LA Galaxy by helping the team retain the MLS Cup.