Consumer goods giant Procter & Gamble has acquired a 1% stake in UK online retailer Ocado.