Kim Avis trial: Accused was “in trance” during alleged sex attack in caravan near Inverness, court hears