A common perception says that time changes people. I really doubt it.
Its a process of evolution and a matter of time before one actually knows the other person. Just as time heals, occasionally time hurts. Because over a period of time, you realize that the pretence of few people has actually fooled you, more importantly, wasted much of your time especially when you really trusted them.
But then, better late then never.
Solution to the problem?
Just move away from them, slowly but surely. It works but definitely brings about a bad taste in the mouth which often really persists long. They are better left alone in their own world of haughtiness and soon you'll be with new people around you, most often for the better rather than for the worse.