Corruption 'undermining' justice