A one-dimensional beam-like model for double-layered pipes