AT&T cancels plans to buy T-Mobile