Finite volume effects in weak hadronic decays