The Duke of Edinburgh has surrendered his driving license, weeks after the 97-year-old was involved in a car crash that left two injured.