Some large ads at the top of its results were for sites it now believes were stealing users’ cash.