Generalisation in humans and deep neural networks