Improved constraints on the primordial power spectrum at small scales from ultracompact minihalos