The UK government is pursuing legislation to remove former Prince Andrew from the royal line of succession following his arrest over connections to Jeffrey Epstein.