Class of drugs may treat acute liver failure and prevent need for surgery, say scientists