Vital funding has been allocated to help a veterans charity support former armed forces personnel in Portsmouth and elsewhere.