Cody Ward's Callala Bay drug business driven by desire for friendship, Ward tells court