Families saved £1.28bn in IHT last year by leaving gifts to charities in their wills as more people used charitable legacies to reduce the tax burden on their estates.