Role of higher twist effects in diffractive DIS and determination of diffractive parton distribution functions