Police placed an 18-year-old Southampton university student in handcuffs after he had been fatally stabbed, a trial has been told.