AT&T announced on Sunday that it agreed to buy T-Mobile USA from Deutsche Telekom, in a $39 billion deal that will reshape the cellular telephone industry. The merger — one of the largest since the onset of the financial crisis — would combine the second and fourth largest cellular carriers in the nation, bringing together AT&T’s 95.5 million wireless subscribers with T-Mobile’s 33.7 million customers.