The pharmaceutical giant scrapped development of a once-daily GLP-1 pill after a person involved in the drug’s trial suffered a liver injury.