The Competition and Markets Authority will investigate why fuel prices are rising as well as local differences.