Glassy mean-field dynamics of the backgammon model