Energy suppliers are being forced to fix faulty smart meters as soon as possible or face fines and penalties.