Schools are also restricting pupils’ use of artificial intelligence for homework and live lessons, research finds.