Scattering of flexural waves by cavities in a plate