Salesforce.com Inc forecast current-quarter profit below analysts’ estimates on Wednesday, as the cloud-software maker invests heavily to boost sales and fend off rising competition.