Metric-affine gravity and inflation