Life expectancy in Scotland increased slightly for both males and females according to new figures from National Records of Scotland.