Calls to properly fund modernisation efforts for the armed forces have been made by a former defence secretary.