F-manifolds with flat structure and Dubrovin's duality