Observation of a diffractive contribution to dijet production in proton-proton collisions at $\sqrt{s} = 7$ TeV