The government is telling local councils they must publish data on how many potholes they have fixed or risk losing their share of an extra £500m set aside for fixing roads.