The state pension will rise by 8.5% in April following a pledge to protect the value of the benefit.