Moduli inflation from modular flavor symmetries