Gender, headship and intrahousehold resource allocation