Visiting UK

Question: I have been permanently withdrawn from University and have already left the UK. However, I left some stuff at a friend's house and would like to fetch it. Once I've been told I can only re-enter after six months. At another time I was told after 12 months... Could you help me with this question? After how long can I re-enter the UK? Thank you.