Chastened by a fractious Labour conference, the PM bids to draw a line under mis-steps and “get a grip” on No 10