UK and EU agree to cooperate on tackling illegal immigration as post-Brexit relations thaw further