Flux pinning mechanism in unorientated grains of YBa2Cu3O7−δ