Yahoo Inc. said it will now alert its users if it “strongly suspects” their accounts have been targeted by state-sponsored actors. The Internet giant becomes the latest tech company to say it will alert users of state-sponsored attacks, showing the increasing focus of companies on cyber security.