Cosmological inflation and large-scale structure