A seven-figure investment is set to be made to refurbish toilet blocks across the New Forest.