UK officials to be banned from contact with groups listed as 'extremist'