U.S. approves digital pill that tracks when patients take it