Prince Andrew loses military titles and patronages