Marissa Mayer gives a hedge fund four seats on Yahoo’s board, clearing the way for a sale