HDFC Bank has posted a robust quarterly profit, beating analyst estimates, on the back of strong retail loan growth and improved margins.