Palestinian militant groups including the armed wing of Hamas are committing war crimes when they fire rockets into Israel, according to a report by campaign group Human Rights Watch.