The widespread sexual abuse of aged residents is a “nationwide disgrace”, a prime inquiry hears.