Former barrister pleads guilty to providing illegal immigration advice