The effect of oxygen reduction on the magnetic properties of REBa2Cu3O6+x