Lexington-based life sciences company GI Dynamics said Wednesday it has raised $57.5 million to fund a clinical trial in the United States of a diabetes treatment that already is available in seven other countries. The company’s medical device, the EndoBarrier, is placed in the intestine by a tube inserted through a patient’s mouth.