Non-vertical cultural transmission, assortment and the evolution of cooperation