Exciton-polariton localized wave packets in a microcavity