Public transport companies have been warned by the government against increasing fares unnecessarily.