The rain has no horizontal component of velocity, so when you are at rest, it all strikes the umbrella and you remain dry. If you run, you will get wet.
Work Step by Step
When running, in your reference frame the rain has a backward-directed horizontal velocity. It’s just like you were standing still while a horizontal wind pushed the rain. Your legs get wet.