Text this: Optimal Group Formation in Dense Wi-Fi Direct Networks for Content Distribution