Measurement of the underlying event activity at the LHC with $ \sqrt {s} = 7 $ TeV and comparison with $ \sqrt {s} = 0.9 $ TeV