Magnetic relaxation effects in YBa2Cu3O7−δ thin films