Former chancellor to replace outgoing leader Liz Truss after weeks of political and economic turbulence.