The Bank of England has raised its interest rate to 4% due to inflation.