[core] Fix hash calculation when weights are skipped (#32605)
### Details:
- Fix create blobs in cache when using GenAI continuous batching
pipeline.
- Use inputs size for hash instead first 8 bytes which could be outside
the Constant data buffer.
### Tickets:
- CVS-175747
Signed-off-by: Pawel Raasz <pawel.raasz@intel.com>