Measurement and interpretation of fermion-pair production at LEP energies from 130 to 172 GeV