HONG KONG (Reuters) - A deal under which U.S. carrier AT&T Inc was to have sold smartphones made by Huawei Technologies Co Ltd [HWT.UL] has collapsed at the eleventh hour, people with knowledge of the matter said, in a major setback for the Chinese firm's global ambitions.