The effect of a weak magnetic field on the variable-range hopping regime in GaAs