Behavior like this is certainly in the books, although "unable to refrain from touching" implies something other than the non-erotic affection that Tolkien described. Keep in mind that Tolkien was a child of late Victorian England, and customs change. You rarely even see young girls holding hands today, but this was once quite common in America.