Failures in UK immigration and asylum 'undermine the rule of law'