City dwellers spend longer outside than those who live in small towns and villages, according to research.