On the Connection Between Learning Two-Layers Neural Networks and Tensor Decomposition