A UKIP councillor has announced he will probably have to step down after less than two weeks because he posted a series of offensive messages about Jews and Muslims online.