The star at the heart of a sex scandal which has gripped China told a court today that it was " a very huge shock " when thousands of photographs of him in bed with women including well-known Hong Kong actors and singers surfaced on the web .