Infrared structure of dijet production at the LHC