UK government admits error after release of royal documents on former Prince Andrew