The military will escort Donald Trump from the White House should the president lose November’s election but refuse to leave office.