Porfirio Díaz agrees to step down