Statistical mechanics and dynamics of solvable models with long-range interactions