David Beckham to have role in London Olympics opening ceremony