Cardiff University has placed metal cages against warm air vents on campus to prevent homeless people from sleeping by them during winters.