Diphoton background to Higgs boson production at the LHC with soft gluon effects