Spin Fluctuation Theory for Quantum Tricritical Point Arising in Proximity to First-Order Phase Transitions: Applications to Heavy-Fermion Systems, YbRh2Si2, CeRu2Si2, and beta-YbAlB4