Andrew Mountbatten Windsor will be stripped of his last remaining military position as part of King Charles's decision to remove him from public life, according to the UK defence minister.