Judges must avoid close relationships with solicitors