NHS Hampshire and Isle of Wight has pledged to support serving and former armed forces personnel and their families.