Mohamed Salah and Roberto Firmino both scored twice as Liverpool thrashed Group B rivals Porto 5-1 on Tuesday.