HDFC Bank earns profit in Q1