Google is replacing Prabhakar Raghavan, the company’s search and ads boss since 2018, with longtime executive Nick Fox.