Beneficial mutations and the dynamics of adaptation in asexual populations