Ferromagnetism induced by entangled charge and orbital orderings in ferroelectric titanate perovskites