AI chatbots are being used as 'surrogate friends' by young people who have lost the ability to socialise.