Three six-story buildings with 270 apartments in Portsmouth will be for workers like teacher and firefighters, developers say.