Tata beats rival Infosys in revenue, profit growth