Healthy friendships may boost memory: study