British Gas has agreed to a £20 million payout and to compensate customers who had a prepayment meter installed without their permission, regulator Ofgem has said following an investigation..