Four in five primary schoolchildren have unsupervised access to smart devices in their bedrooms, according to a new study.