Bet-hedging and the evolution of multiple mating