The British Foreign Secretary has said the UK needs to directly engage with the Taliban over priorities such as aiding potential evacuees to leave Afghanistan.