Window of opportunity for charities to benefit from £40bn predicted legacy upsurge