David Beckham says the 2022 World Cup in Qatar will provide a lasting legacy by inspiring future generations.