[core] Reduce big templates from constant header (#32029)
### Details:
- Remove big template code from Constant operator
- It may reduce binary size of OpenVINO and other libraries as code is
main OV library checked on gcc-11 clang-18
- For types not supported by OV there is double conversion used. It is
recommend to used types supported by OV
### Tickets:
- CVS-152745
---------
Signed-off-by: Pawel Raasz <pawel.raasz@intel.com>