Olivier Giroud and Aaron Ramsey scored for Arsenal as they defeated Monaco but fell short on advancing to the next round of the UEFA Champions League.