Tesla posts record sales but falls short of goals