Statistical properties of fast radio bursts elucidate their origins: magnetars are favored over gamma-ray bursts