Network reconstruction via the minimum description length principle