The Bank of England has raised rates to 5% from 4.5% to control price rises.