Former NSW Deputy Premier John Barilaro says ‘racist’ YouTube videos drove him to consider self-harm