Compounding will play the biggest role in helping an 18-year-old save £1m for their retirement, analysis has stated.