Socially-Aware Robot Navigation by Leveraging Group Detection