Man charged with crimes in Portsmouth, Franklin