Researchers believe having an optimistic outlook can help stroke victims recover faster