US retail sales rose by the most in five months in a broad advance, showing consumers continued to spend despite rising gasoline prices.