The Cauchy problem for metric-affine f(R)-gravity in presence of perfect-fluid matter