The Teichmüller problem for $L^p$-means of distortion