Understanding memorisation of neural networks