The state-owned company will keep all of its 11,500 branches open in the UK after threats to close them by the Government.