A statistical study of magnetic field fluctuations in the dayside magnetosheath and their dependence on upstream solar wind conditions