Measurements of branching fraction and direct CP asymmetry in B±→KS0KS0K± and a search for B±→KS0KS0π±