On the inability of Gaussian process regression to optimally learn compositional functions