Field-induced topological Hall effect and double-fan spin structure with a c-axis component in the metallic kagome antiferromagnetic compound YMn6Sn6