People who rely solely on the Department for Work and Pensions (DWP) state pension will be shielded from tax.