Scared-Please help

I was walking home from work tonight and this guy was following me and then started walking right next to me and this was our convo:

G- Where you off to, gorgeous?

M- Home

G- What’s a pretty girl like you doing walking by herself?

M- I’m not by myself, I’m meeting my dad in a minute (a massive lie just to get him to leave me alone)

G- I’ll be your dad for the night if you want, it’ll be lots of fun; I promise you’ll enjoy it. You’ll like me between your legs.

So I sped up again about to run and he grabbed my ass and then walked in the opposite directing and shouted “I’ll be using this tonight” as he left.

Was it my fault for talking to him? He was shouting stuff to me to get my attention previously and I was ignoring him, causing him to walk next to me; I didn’t know what he’d do if I kept on ignoring him. I don’t know what to do now, I feel humiliated; I’m 17 and don’t know how to tell my boyfriend