Prince Andrew has announced that after consulting with King Charles he has given up the use of his Duke of York title.