Statics and dynamics of single DNA molecules confined in nanochannels