Sir Alex Allan has resigned as PM’s adviser on ministerial code after Boris Johnson has ruled that Priti Patel did…