The distribution of free path lengths in the periodic Lorentz gas and related lattice point problems