The UK's Food Standards Agency has advised consumers that some pies in batches of three brands of fruit pies have been found to contain mould.