Installment loans and online small-business lending are quickly replacing payday loans as sources of credit for lower-income households, driven by regulatory changes and innovations in financial technology, according to a new study.