Magnetic properties of YBa2Cu3O7−x superconductor: Flux trapping and glassy like features