Influence of resonant magnetic perturbations and induced islands on plasma rotations and turbulence properties in the J-TEXT tokamak