Ground state solutions of a critical problem involving cylindrical weights