US food and consumer products giant Procter & Gamble has posted a rise in quarterly profit, helped by new products and the weak dollar.