The freezing of spin and charge at low temperature in YBa2Cu3O6+x