Mechanical effects of optical resonators on driven trapped atoms : ground-state cooling in a high-finesse cavity