There is a free cloakroom at the Pompeii site where you can leave your luggage. However, the Pompeii website warns that they frequently run out of space. If you arrive mid morning or later, there may not be available space to store your bags. Therefore, you may be better off storing your luggage at the train station.