Hayne 'guilty of bad sex', jury told