The answers above provide the most likely answer; however, as regards the origin of the phrase, if you click here
you'll be offered a page with about twenty versions of the same question. Clicking on each of these will reveal a raft of suggestions, including the idea that it is from wartime RAF usage and the one that it refers to people clapping at a 'happy-clappy' type of religious service. They're worth reading just for interest's sake.