In very early life, sleep helps build the brain’s infrastructure, but as we age it takes on a new decluttering role