Jury hears ‘sexual’ gym cupboard allegation against former teacher