Being optimistic about the future may help people save more money, and the effect appears strongest among those with lower incomes, according to new research.