Learning constitutive models from microstructural simulations via a non-intrusive reduced basis method