The average investor could retire two and a half years sooner by avoiding holding too much in cash and not making investment decisions based on “emotional comfort”, according to new analysis.