Petrobras has promised to start paying dividends to shareholders again, as soon as it returns to profit after being hit by several scandals.