The Generalisation Cost of RAMnets