On Hardy inequalities with a remainder term