Text this: Resource Allocation in D2D-Enabled 5G Networks Using Multiagent Reinforcement Learning