Risk bounds when learning infinitely many response functions by ordinary linear regression