Spectral asymptotics of foliated manifolds