Close friends can help you live longer but they can spread some bad habits too