Method and device for rotating perforation of a band-shaped product