Search for the standard model Higgs boson produced in association with a top-quark pair in pp collisions at the LHC