Deformations of Q-Fano 3-folds and weak Fano manifolds