Quasinormal-mode theory and design of elastic Purcell factors, mechanical cavity modes and Fano resonances in optomechanical beams