Molecule formation and the Farey tree in the one-dimensional Falicov-Kimball model