Yahoo chief executive Marissa Mayer lost her annual bonus after an investigation showed the company mishandled an epic hack.