Aug 5 (Reuters) - Cornerstone OnDemand Inc said on Thursday investment firm Clearlake Capital Group LP would buy the cloud computing company in a deal valued at about $5.2 billion. (Reporting by Akanksha Rana in Bengaluru; Editing by Maju Samuel)