Asymptotic decomposition in the problem of joined elastic beams