Elastic beam over an adhesive wavy foundation