P&G misses on earnings, cites still-rising costs