Near-optimal rate of consistency for linear models with missing values