Finite-size analysis of first-order phase transitions: Discrete and continuous symmetries