The impact of transposable elements in adaptive evolution