Wolfgang Niersbach has resigned from his position as president of the German Football Association (DFB).