Measurement of the cross sections for π+π− production in pp collisions at energies below 1 GeV