Impact of BaTiO$_3$ nanoparticles on phase transitions and dynamics in nematic liquid crystal - temperature and pressure studies