Any type of "contact cement/adhesive".
Usually it entails coating each of the surfaces to be joined with a thin layer, letting it dry for a few minutes and then when clamped together, it goes no-where.
Of course one can use it also as you describe to hold wiring if you put a dob of it on top...