Front propagation and cultural transmission. Theory and application to Neolithic transitions