A barrister offered an apology to bereaved families on behalf of a mental health trust at an inquiry into deaths of patients in Essex as she acknowledged a series of failings