Single-particle and collective dynamics of methanol confined in carbon nanotubes: a computer simulation study