Stash, a New York-based startup that lets individuals save small sums of money and make micro-investments through a mobile app, has secured a $40 million investment in a round led by fund manager Coatue Management.