Hi,
Sorry to hear about your bad experience.
You asked “any suggestions on how to handle this type of situation in the future??”
Keep in mind that you are not responsible if people act in an aggressive or abusive way. That is their choice, and not a reflection on you or your conduct. The sad fact is, cyclists are the target of abuse from motorists and pedestrians who think the road space is theirs alone.
Top priority is your own safety and well-being. If it looks like the situation could turn nasty, retreat and call the police.
From what you wrote, you acted reasonably on a shared path by warning pedestrians of your approach and moving aside. Possibly the pedestrians did not know it was a shared path, which indicates poor signage or markings. I’d also hazard a guess the path does not meet the latest standards for shared use paths.
Finally, posting here is a way of sharing the stress and reporting what happened.
Overall, I think the majority of people are polite. On my Sunday cycle ride last weekend I experienced amazing courtesy from drivers and a cheery “hello” from a horse rider!