The Office for National Statistics said inflation had risen to 3.3% in March, up from 3% in Februrary.