Bangladesh’s leading political candidates have voted in a closely contested general election in Dhaka.