Man was asleep when he walked into bedroom and sexually assaulted friend’s girlfriend, York Crown Court told YorkMix