Prince Andrew has given up his remaining titles and honours, including the Duke of York, in the wake of the Epstein scandal.