The problem might be with the PCF8574 chip. The datasheet that I downloaded says that it works at 100 kHz. If your clock works at 400 kHz that might be a problem. Try configuring the I2C interface at 100 kHz only. Try this line at the beginning of the program,

DEFINE I2C_SLOW 1