AT&T plans to cut thousands of jobs, close stores, company tells union