Wates posts small profit after pandemic hit