Pell knew about abuse but failed to act, inquiry told