IMO if you have read it somewhere it is a marketing gimmick and nothing else. The age of the domain does have some role to play in the Google's search engine algorithms. But that does not mean that you should register a domain name for a long period.
Most of the people think that by registering a domain name for a long duration indicates the search engine that the
website hosting will stay online for a long term.