A man has been told he cannot enter part of Lancaster city centre after “repeated anti-social behaviour and criminal damage offences”.