White glue works. it's water soluble as mentioned, so you just need to rinse/bathe in hot water to dissolve it after the fact.

Wood glue works if you're desperate but I doubt you have the hair to justify such measures.

Stick to water based hair gel (without adding water) and see if it does what you need to. Then look for Joico (R) Ice Gel. That should be sufficient.