Decay of metastable states in wetting and dewetting transitions