Direct CP Violation in Charmless Three-body Decays of $B$ Mesons