Intelligent Resource Allocation in Dense LoRa Networks using Deep Reinforcement Learning