Strategyproof mechanisms for additively separable and fractional hedonic games