Um means doubt or hesitation... It gives your brain time to think what your going to say next...
Um!, wait a second like I don't know what I want to say at this second so give me a second while I think of um!what to say in my answer.
I once saw a shirtless man. Turns out it was me