Plans for a 30-storey block of flats have fallen through after the developer did not sign off on a legal agreement with Leeds City Council.