A school in Western Australia has taken a bold step to stop young children getting on social media.