SWBT: Similarity Weighted Behavior Transformer with the Imperfect Demonstration for Robotic Manipulation