Telstra has announced plans to sack thousands of workers by the end of this year, as part of its latest round of cost-cutting measures.