Lennar posts profits, record margins for Q2