Ghost instabilities of cosmological models with vector fields nonminimally coupled to the curvature