Palace ‘working with Government’ to remove Andrew from line of succession