The component masses of the cataclysmic variable V347 Puppis