Walgreens Boots Alliance Inc.’s quarterly earnings dropped 25% amid increased competition from online and discount retailers and shrinking profits in prescription drugs. The pharmacy chain’s fiscal first-quarter profit fell to $845 million, even as overall revenue rose and the company worked to cut costs.