Chris Huhne has resigned from his post as Energy Secretary after being charged by the CPS over allegedly perverting the course of justice.