Harry, Duke of Sussex, will be barred from wearing his military uniform after he agreed to step back from his Armed Forces appointments.