Pupils in Scotland must not simply copy and paste from AI for homework, according to new government guidance.