Study of the Bs->J/psi phi decay in pp collisions at sqrt(s)=7 TeV with the CMS detector