On the Peierls transition in a periodic potential