Ferran Torres clinched Spain's second World Cup title with an extra-time winner against reigning world champions Argentina in a bad-tempered final.