Millions of savers are sleepwalking into an inheritance tax trap ahead of a major pensions rule change, a study has found.