A 26-year-old man has been banned from almost every shop in Grantham after admitting a number of offences in the town.