Pinnacle Foods has blamed rising input costs as its second-quarter net profit halved.